package com.adnaan.backend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

@Data
@TableName("after_sales")
@Schema(description = "售后信息")
public class AfterSales {

    @TableId(type = IdType.AUTO)
    @Schema(description = "主键ID")
    private Long id;

    @Schema(description = "关联订单ID")
    private Long orderId;

    @Schema(description = "申请用户ID")
    private Long userId;

    @Schema(description = "售后类型：0-退款 1-退货退款 2-换货")
    private Integer type;

    @Schema(description = "售后原因")
    private String reason;

    @Schema(description = "问题描述")
    private String description;

    @Schema(description = "图片凭证")
    private String images;

    @Schema(description = "状态：0-待处理 1-处理中 2-已完成 3-已拒绝")
    private Integer status;

    @Schema(description = "处理备注")
    private String handleNote;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "更新时间")
    private Date updateTime;
} 